import request from '../utils/request'
//登录
function login(data) {
    return request.post('/api/login', data)
}
//注册
function regsiter(data) {
    return request.post('/api/regsiter', data)
}
//我的页面
function mylogin(data) {
    return request.get('/api/mylogin', data)
}

//首页 页面
function homelist(data) {
    return request.get('/api/homelist', data)
}

//删除 我的页面
function dellogin(data) {
    return request({
        url: '/dellogin',
        method: 'post',
        data
    })
}



//订单
function shop(data) {
    return request.post('/api/shop', data)
}

function shopdel(data) {
    return request.post('/api/shopdel', data)
}

function shopsearch(data) {
    return request.post('/api/shopsearch', data)
}

function shopexit(data) {
    return request.post('/api/shopexit', data)
}

function shopadd(data) {
    return request.post('/api/shopadd', data)
}





//商城列表
function shoplist(data) {
    return request.post('/api/shoplist', data)
}

function shoplistdel(data) {
    return request.post('/api/shoplistdel', data)
}

function shoplistsearch(data) {
    return request.post('/api/shoplistsearch', data)
}

function shoplistexit(data) {
    return request.post('/api/shoplistexit', data)
}

function shoplistadd(data) {
    return request.post('/api/shoplistadd', data)
}


//科普
function list(data) {
    return request.post('/api/list', data)
}

function listdel(data) {
    return request.post('/api/listdel', data)
}

function listsearch(data) {
    return request.post('/api/listsearch', data)
}

function listexit(data) {
    return request.post('/api/listexit', data)
}

function listadd(data) {
    return request.post('/api/listadd', data)
}


export {
    login,
    regsiter,
    mylogin,
    dellogin,
    homelist,
    shop,
    shopdel,
    shopexit,
    shopsearch,
    shopadd,

    shoplist,
    shoplistdel,
    shoplistexit,
    shoplistsearch,
    shoplistadd,

    list,
    listdel,
    listexit,
    listsearch,
    listadd,
}